package com.wow.wa.bill.util;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;

public class JCommonComentImpl implements JCommonComent {

	@Override
	public List<String> getAllFieldsByReflect(Class<?> source) throws Exception {
		List<String> fields = new ArrayList<String>();
		Field[] fs = source.getDeclaredFields();

		for (Field f : fs) {

			if (Modifier.isStatic(f.getModifiers())) {

			} else {
				fields.add(f.getName());

			}
		}

		return fields;
	}

}
